package com.quxuecx.springcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
import javax.annotation.Resources;

/**
 * @author: shaofeer
 * <p>
 * @qq: 337081267
 * <p>
 * @CSDN: http://blog.csdn.net/pyfysf
 * <p>
 * @blog: http://wintp.top
 * <p>
 * @email: shaofeer@163.com
 * <p>
 * @time: 2020/6/24
 */
@RestController
@RequestMapping("/order")
public class ConsumerzkOrderController {
    @Autowired
    RestTemplate mRestTemplate;

    @RequestMapping("/payment")
    public String payment() {
        return mRestTemplate.getForObject("http://localhost:8004/payment", String.class);
    }

}
